<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Commerce Office</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="<?php echo base_url();?>assets/img/logo2.png">

    <!-- CSS -->
    <link href="<?php echo base_url();?>assets/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">

      /* Sticky footer styles
      -------------------------------------------------- */
      html,
      body {
        height: 100%;
        /* The html and body elements cannot have any padding or margin. */
      }

      /* Wrapper for page content to push down footer */
      #wrap {
        min-height: 100%;
        height: auto !important;
        height: 100%;
        /* Negative indent footer by it's height */
        margin: 0 auto -60px;
      }

      /* Set the fixed height of the footer here */
      #push,
      #footer {
        height: 60px;
      }
      #footer {
        background-color: #f5f5f5;
		height:29px;
      }

      /* Lastly, apply responsive CSS fixes as necessary */
      @media (max-width: 767px) {
        #footer {
          margin-left: -20px;
          margin-right: -20px;
          padding-left: 20px;
          padding-right: 20px;
        }
      }

      /* Custom page CSS
      -------------------------------------------------- */
      /* Not required for template or sticky footer method. */
	  
	 
			

      #wrap > .container {
        padding-top: 60px;
		padding-bottom:60px;
      }
      .container .credit {
        margin: 20px 0;
      }
      code {
        font-size: 80%;
      }
      
      .form-signin {
        max-width: 400px;
        padding: 19px 29px 29px;
        margin: 50px auto;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
      }
      .form-signin .form-signin-heading,
      .form-signin .checkbox {
        margin-bottom: 10px;
      }
      .form-signin input[type="text"],
      .form-signin input[type="password"] {
        font-size: 16px;
        height: auto;
        margin-bottom: 15px;
        padding: 7px 9px;
	  }
	
		ul.horizontal li {
			display: inline-block;
			margin-left: 0;
			margin-bottom: 10px;
		}
		
		thead {
			background:#999;
			font-weight:bold;
		}
		
		#footer{
			text-align: center;
			padding: 15px 0;
			border-top: 1px solid #e5e5e5;
			background-color: #f5f5f5;		
		}
		
		td{
			padding:8px 10px;		
		}

    </style>
    <link href="<?php echo base_url();?>assets/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="<?php echo base_url();?>assets/js/html5shiv.js"></script>
    <![endif]-->

    <!-- Fav and touch icons -->
    <link rel="shortcut icon" href="<?php echo base_url();?>assets/image/icon.png">
    
    <script src="<?php echo base_url();?>assets/js/jquery-1.7.2.min.js"></script>
    
    
  </head>

  <body>


    <!-- Part 1: Wrap all page content here -->
    <div id="wrap">

      <!-- Fixed navbar -->
      <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
          <div class="container">
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="brand" href="<?php echo base_url();?>">Commerce Office</a>
            <div class="nav-collapse collapse">
              
                    <ul class="nav">
                      <li class="active"><a href="<?php echo base_url();?>">Home</a></li>
                      
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Catalog<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                        <?php if($this->tank_auth->is_url('product/index')){ ?>
                          <li><a href="<?php echo site_url('product/index');?>">Products</a></li>
                        <?php } ?>
                        <?php if($this->tank_auth->is_url('category/index')){ ?>  
						  <li><a href="<?php echo site_url('category/index');?>">Categories</a></li>
                 		<?php } ?>
                        <?php if($this->tank_auth->is_url('store/index')){ ?>
                          <li><a href="<?php echo site_url('store/index');?>">Stores</a></li>
                        <?php } ?>
                        </ul>
                      </li>
					
                    <?php if($this->tank_auth->is_url('order/index')){ ?>
                      <li><a href="<?php echo site_url('order/index');?>">Orders</a></li>
                    <?php } ?>

                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Settings<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                          <li><a href="<?php echo site_url('account/myaccount');?>">My Account</a></li>
                         	<?php if($this->tank_auth->is_url('auth/user')){ ?>
                          		<li><a href="<?php echo site_url('auth/user');?>">Users</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('roles/index')){ ?>
                          		<li><a href="<?php echo site_url('roles/index');?>">Roles</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('privileges/index')){ ?>    
								<li><a href="<?php echo site_url('privileges/index');?>">Privileges</a></li>  
                 			<?php } ?>
                            <?php if($this->tank_auth->is_url('customer/index')){ ?>
                         		<li><a href="<?php echo site_url('customer/index');?>">Customers</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('slide/index')){ ?>
                          		<li><a href="<?php echo site_url('slide/index');?>">Slides</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('currency/index')){ ?>
                            	<li><a href="<?php echo site_url('currency/index');?>">Currencies</a></li>
                            <?php } ?>
                           	<?php if($this->tank_auth->is_url('countries/index')){ ?>
                         		<li><a href="<?php echo site_url('countries/index');?>">Countries</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('order_status/index')){ ?>
                         		<li><a href="<?php echo site_url('order_status/index');?>">Order Statuses</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('payment_status/index')){ ?>
                         		<li><a href="<?php echo site_url('payment_status/index');?>">Payment Statuses</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('zones/index')){ ?>
                         		<li><a href="<?php echo site_url('zones/index');?>">Zones</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('length_classes/index')){ ?>
                         		<li><a href="<?php echo site_url('length_classes/index');?>">Length Classes</a></li>
                            <?php } ?>
                            <?php if($this->tank_auth->is_url('weight_classes/index')){ ?>
                         		<li><a href="<?php echo site_url('weight_classes/index');?>">Weight Classes</a></li>
                            <?php } ?>
                          
                        </ul>
                      </li>

                    </ul>

               <ul class="nav navbar-form pull-right">
                <li><a href="<?php echo site_url('auth/logout');?>">Logout</a></li>             
              </ul>

            </div><!--/.nav-collapse -->
          </div>
        </div>
      </div>
